'''
3.3.1 比较运算符
'''

a = 10
b = 17
print(a > b)
print(a <= b)

c = 'abc'
d = 'bac'
print(c < d)
print(c != d)

a = '97'
b = 100
# TypeError: '>' not supported between instances of 'str' and 'int'
# print(a > b)
print(int(a) > b)
print(a > str(b))

# ValueError: invalid literal for int() with base 10: 'a'
a = 'a'
# print(int(a) > b)
print(a > str(b))